//
//  TutorController.h
//  <21.1> TypingTutor
//
//  Created by chen on 16/9/21.
//  Copyright © 2016年 tyrad. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h> 
#import "BigLetterView.h"

@interface TutorController : NSObject
{
    
    NSTimeInterval _startTime ;
    NSTimeInterval _elapsedTime ;
    NSInteger _lastIndex ;
}

@property(nonatomic, assign)NSTimeInterval timeLimit ;

@property(nonatomic, strong)NSArray * letter;
@property(nonatomic, strong)NSTimer *timer ;

@property (weak) IBOutlet NSProgressIndicator *slider;

//左边的view
@property (weak) IBOutlet BigLetterView *inLetterView;
//右边的view 
@property (weak) IBOutlet BigLetterView *outLetterView;





- (IBAction)stopGo:(id)sender;

- (void)updateElapsedTime;

- (void)resetElapsedTime ;

- (void)showAnotherLetter ;





@end
